﻿using DimsMapper.Modules;

namespace DimsMapper.Proto
{
    class ItemCommon : CommonExt
    {
        Proto.ItemTypes itemSubType = Proto.ItemTypes.None;
        int inventoryFID;

        protected override void LoadData(DBFile file)
        {
            base.LoadData(file);

            itemSubType = (Proto.ItemTypes)file.ReadInt();
            file.SkipBytes(4 * 4);
            inventoryFID = file.ReadInt();
            file.SkipBytes(1); // SoundID
        }

        public Proto.ItemTypes ItemSubType
        {
            get { return itemSubType; }
        }

        public int InventoryFID
        {
            get { return inventoryFID; }
        }
    }
}
